import Vue from 'vue'
import Router from 'vue-router'
import Home from './components/Home.vue'
import Goods from './components/Goods.vue'
import User from './components/User.vue'
import Cart from './components/Cart.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/',
      component:Home
    },
    {
      path:'/goods',
      component:Goods 
    },
    {
      path:'/user',
      component:User 
    },
    {
      path:'/cart',
      component:Cart
    }
  ]
})
